package kr.ragne.game;

import kr.ragne.framework.AppManager;
import kr.ragne.framework.IState;
import kr.ragne.framework.R;
import android.graphics.Canvas;
import android.view.KeyEvent;
import android.view.MotionEvent;

public class GameState implements IState {
	private Player player;
	@Override
	public void Init() {
		player = new Player(AppManager.getInstance().getBitmap(R.drawable.player));
	}

	@Override
	public void Destroy() {

	}

	@Override
	public void Update() {
		long gameTime = System.currentTimeMillis();
		player.Update(gameTime);
	}

	@Override
	public void Render(Canvas canvas) {
		player.Draw(canvas);
	}

	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		return false;
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		return false;
	}

}
